package com.example.powernodemall.strategy;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class LoginOption {

    @Resource
    Map<String,LoginMethod> loginMethodMap;

    public LoginMethod getLoginMethod(String name) {
        return loginMethodMap.get(name);
    }
}
